//---------------------------------------------------------------------------

#ifndef RashPoiskH
#define RashPoiskH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "cxClasses.hpp"
#include "cxControls.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxEdit.hpp"
#include "cxFilter.hpp"
#include "cxGraphics.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxStyles.hpp"
#include <DB.hpp>
#include "cxContainer.hpp"
#include "cxGroupBox.hpp"
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "Fr_Adres.h"
#include <Buttons.hpp>
#include <ActnList.hpp>
#include <ComCtrls.hpp>
#include "cxDBProgressBar.hpp"
#include "cxProgressBar.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrRashPoisk : public TForm
{
__published:	// IDE-managed Components
	TPanel *pTable;
	TPanel *pPoisk;
	TcxGrid *sgSPR_ABON;
	TcxGridDBTableView *sgSPR_ABONDBTableView1;
	TcxGridDBColumn *sgSPR_ABONDBTableView1KOD;
	TcxGridDBColumn *sgSPR_ABONDBTableView1NAIM;
	TcxGridLevel *sgSPR_ABONLevel1;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column1;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column2;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column3;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column4;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column5;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column6;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column7;
	TcxGroupBox *gbNOM;
	TFrame_Adres *Frame_Adres1;
	TGroupBox *GroupBox1;
	TLabel *Label1;
	TEdit *edDOM;
	TLabel *Label2;
	TEdit *edKV;
	TBitBtn *bbtRefresh;
	TStatusBar *sb;
	TcxGroupBox *gbFIO;
	TEdit *edFIO;
	TEdit *edNOM;
	TGroupBox *gbPO_VID_RASH;
	TLabel *Label3;
	TLabel *Label16;
	TDBLookupComboBox *cbTARIF;
	TLabel *Label14;
	TDBLookupComboBox *cbVID_GAZA;
	TDBLookupComboBox *cbVID_RASH;
	TIBCQuery *dsetSPR_ABON;
	TIBCDataSource *dsSPR_ABON;
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall sgSPR_ABONDBTableView1DblClick(TObject *Sender);
	void __fastcall sgSPR_ABONDBTableView1KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edNOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall Frame_Adres1cbULClick(TObject *Sender);
	void __fastcall edDOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edKVKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall bbtRefreshClick(TObject *Sender);
	void __fastcall FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall edFIOKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbVID_RASHClick(TObject *Sender);
	void __fastcall cbVID_GAZAClick(TObject *Sender);
	void __fastcall cbTARIFClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
int PROSM,REFR_KART;
	__fastcall TfrRashPoisk(TComponent* Owner);
	void __fastcall TfrRashPoisk::PROSM_LIC();
	void __fastcall TfrRashPoisk::POISK(int TIP, int NOM,int PUNKT,
	int VU, int UL, String DOM,String KV,String FIO,int PRIZ,int TARIF);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrRashPoisk *frRashPoisk;
//---------------------------------------------------------------------------
#endif
